<template>
	<view class="container">
		<view class="header common-header">{{ agencyName }}</view>
		<yxylMenu :menuList="menuList"></yxylMenu>
	</view>
</template>

<script>
import yxylMenu from '@/components/yxyl-menu/yxyl-menu.vue';
export default {
	components: { yxylMenu },
	data() {
		return {
			agencyName: '',
			menuList: []
		};
	},
	onLoad() {
		this.$http.request({
			url:'api/UcenterApi/AgencyManagerCenter'
		}).then((res)=>{
			// #ifdef H5
			this.$wechat.hideMenu();
			// #endif
			this.agencyName=res.agencyName;
			this.menuList=res.ucenterItem;
		})
	}
};
</script>

<style lang="scss" scoped>
.header {
}
</style>
